<?php

namespace app\front\controller;

use think\Controller;
use think\Request;
use think\Session;

class Bescs extends Controller
{
//    书写一个基类

public function __construct(Request $request = null)
{
    parent::__construct($request);
   $res = Session::get('id');
   if (!isset($res)){
       $this->error('请登录后在进行访问','/front/user/login');
   }
}


}
